<template>
  <div class="page-tools">
    <el-card>
      <el-row type="flex" justify="space-between" align="center">
        <!-- 左侧 -->
        <div class="left">
          <div v-if="$slots.tips" class="tips">
            <i class="el-icon-info" />
            <!-- <span>本月: 社保在缴 公积金在缴</span> -->
            <slot name="tips" />
          </div>
        </div>
        <div class="right">
          <!-- 右侧 -->
          <!-- <el-button type="primary" size="small">历史归档</el-button>
          <el-button type="primary" size="small">导出</el-button> -->
          <slot />
        </div>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'PageTools'
  // 获取组件中的所有插槽信息
  // created() {
  //   console.log(this.$slots)
  // }
}
</script>

<style lang="scss" scoped>
.page-tools {
  .tips {
    line-height: 34px;
    padding: 0px 15px;
    border-radius: 5px;
    border: 1px solid rgba(145, 213, 255, 1);
    background: rgba(230, 247, 255, 1);
    i {
      margin-right: 10px;
      color: #409eff;
    }
  }
}
</style>
